﻿<div class="top-row ps-3 navbar navbar-dark">
	<div class="container-fluid">
		<a class="navbar-brand" href="">Консольные игры от<br>Монтировки</a>
		<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
			<span class="navbar-toggler-icon"></span>
		</button>
	</div>
</div>
<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
	<nav class="flex-column">
		<div class="nav-item px-3">
			<NavLink class="nav-link" href="Scary Bodka">
				<span class="oi oi-play-circle" aria-hidden="true"></span>Богдан куснул за пятку
			</NavLink>
		</div>
		<div class="nav-item px-3">
			<NavLink class="nav-link" href="Bodka v Bare">
				<span class="oi oi-play-circle" aria-hidden="true"></span>Бодька в баре
			</NavLink>
		</div>
		<div class="nav-item px-3">
			<NavLink class="nav-link" href="Paychki">
				<span class="oi oi-play-circle" aria-hidden="true"></span>Паучки Богдана и Хихи
			</NavLink>
		</div>
	</nav>
</div>

@code
{
	private bool collapseNavMenu = true;

	private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;

	private void ToggleNavMenu()
	{
		collapseNavMenu = !collapseNavMenu;
	}
}
